import http from "@/utils/http";

export class RedisService {
    static async setRedis(key: string, value: string) {
        return http.post({
            url: 'redis/redis_set',
            data: {key: key, value: value}
        })
    }

    static async getRedis(key: string) {
        return http.post({
            url: 'redis/redis_get',
            data: {key: key}
        })
    }
}